import Vue from 'vue'
import VueRouter from 'vue-router'
import Notebook from '@/components/Notebook'
import Editing from '@/components/NoteEditing'
import Nofound from '@/components/Nofound'

Vue.use(VueRouter)

const routes = [
    {
        path: '/notebook',
        name: 'notebook',
        component: Notebook,
        children: [
            {
                path: 'editing',
                name: 'editing',
                component: Editing
            },
        ]
    },
    {
        path: '/',
        name: '',
        component: Notebook
    },
    {
        path: '/*',
        name: '*',
        component: Nofound,
    }
]

const router = new VueRouter({
    routes
})

export default router